package com.gzhryc.shared_device.oem.code.device.dao.models;

import com.gzhryc.jdbc.annotaion.Join;
import com.gzhryc.shared_device.oem.code.agent.dao.db.AgentRelationDevice;
import com.gzhryc.shared_device.pcl.code.dao.db.ChargingCable;

public class AgentRelationPCLDevice extends ChargingCable {

    private static final long serialVersionUID = 1L;
	/**
     * 这里是一对多关系，查询时条件必须有：relationUserId
     */
    @Join(fromField = {"device_sn","device.user_id"},toField = {"device_sn","user_id"},priority=2)
    protected AgentRelationDevice relationDevice;

    public AgentRelationDevice getRelationDevice() {
        return relationDevice;
    }

    public void setRelationDevice(AgentRelationDevice relationDevice) {
        this.relationDevice = relationDevice;
    }
}
